@extends('backstage.layout.master')
@section('title', '供应商详情')
@section('style')

@stop
@section('content')
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try {
                ace.settings.check('breadcrumbs', 'fixed')
            } catch (e) {
            }
        </script>

        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="backstage/home">主页</a>
            </li>

            <li class="active">
               <a href="backstage/supplier/list">供应商列表</a>
            </li>
        </ul><!-- .breadcrumb -->

        <div class="nav-search" id="nav-search">

        </div><!-- #nav-search -->
    </div>

    <div class="page-content">
        <div class="page-header">
            <h1>
                供应商详情
            </h1>
        </div>
        <div class="row">
            <div class="col-xs-12">
                <!-- PAGE CONTENT BEGINS -->
                <div class="row">
                    <div class="col-xs-6">
                        <br/><br/>
                        <div class="table-responsive">
                            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                <tbody>
                                <tr>
                                    <td>供应商名称：{{$detail->supplier_name}}</td>
                                </tr>
                                <tr>
                                    <td>联系人姓名：{{$detail->supplier_contacts_name}}</td>
                                </tr>
                                <tr>
                                    <td>联系电话：{{$detail->supplier_mobile}}</td>
                                </tr>
                                <tr>
                                    <td>类型：
                                        @if($detail->supplier_type == 1)加工厂
                                        @elseif($detail->supplier_type == 2)淘宝
                                        @elseif($detail->supplier_type == 3)阿里巴巴
                                        @endif
                                    </td>
                                </tr>
                                <tr>
                                    <td>备注：{{$detail->remark}}</td>
                                </tr>
                                </tbody>

                            </table>
                            <a onclick="javascript:window.location.href='/backstage/supplier/edit?supplier_id={{$detail->supplier_id}}';">
                            <button class="btn btn-primary">修改信息</button>
                            </a>
                        </div><!-- /.table-responsive -->
                    </div><!-- /span -->

                    <div class="col-xs-6">
                        <div class="table-responsive">
                            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                <thead><h2>可提供产品模板信息</h2></thead>
                                <tbody>
                                @foreach ($product_temps as $item)
                                <tr>
                                    <td>品牌：{{$item->brand_name}} <br/> 产品模板：{{$item->name}}</td>
                                </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div><!-- /.table-responsive -->
                    </div><!-- /span -->
                </div>

                <!-- PAGE CONTENT ENDS -->
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content -->
@stop
@section('script')
    <script src="assets/js/template.js"></script>

    <script type="text/javascript">

    </script>
@stop
